package oo4;

public class Penguin extends Pet {
	public Penguin(String n) {
		super.name = n;
		// super.health = 100;
	}

	public final void swim() {
		System.out.println(getName() + "在水中游泳");
	}

	@Override
	public void eat() {
		System.out.println(super.getName() + "吃鱼虾");
	}

	@Override
	public void feed(String food) {
		System.out.println("在喂" + food);

	}
}
